import 'package:flutter/material.dart';
import 'package:gksz/experiment/experiment_details/baobiao.dart';
import 'package:gksz/experiment/experiment_details/baoming.dart';
import 'package:gksz/experiment/experiment_details/chengji.dart';
import 'package:gksz/experiment/experiment_details/fankui.dart';
import 'package:gksz/experiment/experiment_details/jiaoyu.dart';
import 'package:gksz/experiment/experiment_details/jifen.dart';
import 'package:gksz/experiment/experiment_details/jingsai.dart';
import 'package:gksz/experiment/experiment_details/tucao.dart';

class Experiment extends StatefulWidget {
  Experiment({Key key}) : super(key: key);

  _ExperimentState createState() => _ExperimentState();
}

class _ExperimentState extends State<Experiment> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Image.asset(
            'images/title.jpg',
            height: 25,
          ),
        ),
        body: Container(
          child: ListView(
            children: <Widget>[
              Container(
                width: 360,
                height: 200,
                child: Image.asset('images/shijian4.jpg'),
              ),
              Divider(),
              SizedBox(
                height: 20,
              ),
              Row(
                children: <Widget>[
                  Expanded(
                    flex: 1,
                    child: InkWell(
                      child: Column(
                        children: <Widget>[
                          Image.asset(
                            'images/shijian9.png',
                            height: 50,
                          ),
                          Text('学习积分')
                        ],
                      ),
                      onTap: () {
                        Navigator.of(context).push(MaterialPageRoute(
                          builder: (context) => Jifen()));
                      },
                    ),
                  ),
                  Expanded(
                    flex: 1,
                    child: InkWell(
                      child: Column(
                        children: <Widget>[
                          Container(
                            height: 50,
                            width: 50,
                            decoration: BoxDecoration(
                              color: Colors.red,
                              border: Border.all(width: 1, color: Colors.red),
                              borderRadius:
                                  BorderRadius.all(Radius.circular(9.0)),
                            ),
                            child: Image.asset('images/shijian3.png'),
                          ),
                          Text('学习报表')
                        ],
                      ),
                      onTap: () {
                        Navigator.of(context).push(MaterialPageRoute(
                          builder: (context) => Baobiao()));
                      },
                    ),
                  ),
                  Expanded(
                    flex: 1,
                    child: InkWell(
                      child: Column(
                        children: <Widget>[
                          Container(
                            height: 50,
                            width: 50,
                            decoration: BoxDecoration(
                              color: Color.fromRGBO(255, 141, 26, 1),
                              border: Border.all(width: 1, color: Color.fromRGBO(255, 141, 26, 1)),
                              borderRadius:
                                  BorderRadius.all(Radius.circular(9.0)),
                            ),
                            child: Image.asset('images/shijian1.png'),
                          ),
                          Text('我要吐槽')
                        ],
                      ),
                      onTap: () {
                        // Navigator.of(context).push(MaterialPageRoute(
                        //   builder: (context) => Tucao()));
                        showDialog<Null>(
                    context: context,
                    barrierDismissible: false,
                    builder: (BuildContext context) {
                      return new AlertDialog(
                        content: new SingleChildScrollView(
                          child: new ListBody(
                            children: <Widget>[
                              new Text('敬请期待'),
                            ],
                          ),
                        ),
                        actions: <Widget>[
                          new FlatButton(
                            child: new Text('确定'),
                            onPressed: () {
                              Navigator.of(context).pop();
                            },
                          ),
                        ],
                      );
                    },
                  );
                      },
                    ),
                  ),
                  Expanded(
                    flex: 1,
                    child: InkWell(
                      child: Column(
                        children: <Widget>[
                          Container(
                            height: 50,
                            width: 50,
                            decoration: BoxDecoration(
                              color: Color.fromRGBO(0, 186, 173, 1),
                              border: Border.all(width: 1, color: Color.fromRGBO(0, 186, 173, 1)),
                              borderRadius:
                                  BorderRadius.all(Radius.circular(9.0)),
                            ),
                            child: Image.asset('images/shijian2.png'),
                          ),
                          Text('建议反馈')
                        ],
                      ),
                      onTap: () {
                        // Navigator.of(context).push(MaterialPageRoute(
                        //   builder: (context) => Fankui()));
                        showDialog<Null>(
                    context: context,
                    barrierDismissible: false,
                    builder: (BuildContext context) {
                      return new AlertDialog(
                        content: new SingleChildScrollView(
                          child: new ListBody(
                            children: <Widget>[
                              new Text('敬请期待'),
                            ],
                          ),
                        ),
                        actions: <Widget>[
                          new FlatButton(
                            child: new Text('确定'),
                            onPressed: () {
                              Navigator.of(context).pop();
                            },
                          ),
                        ],
                      );
                    },
                  );
                      },
                    ),
                  ),
                ],
              ),
              SizedBox(
                height: 20,
              ),
              Row(
                children: <Widget>[
                  Expanded(
                    flex: 1,
                    child: InkWell(
                      child: Column(
                        children: <Widget>[
                          Container(
                            height: 50,
                            width: 50,
                            decoration: BoxDecoration(
                              color: Color.fromRGBO(255, 255, 255, 1),
                              border: Border.all(width: 1, color: Color.fromRGBO(255, 255, 255, 1)),
                              borderRadius:
                                  BorderRadius.all(Radius.circular(9.0)),
                            ),
                            child: Image.asset('images/shijian5.png'),
                          ),
                          Text('知识竞赛')
                        ],
                      ),
                      onTap: () {
                        Navigator.of(context).push(MaterialPageRoute(
                          builder: (context) => Jingsai()));
                      },
                    ),
                  ),
                  Expanded(
                    flex: 1,
                    child: InkWell(
                      child: Column(
                        children: <Widget>[
                          Image.asset(
                            'images/shijian6.png',
                            height: 50,
                          ),
                          Text('查看成绩')
                        ],
                      ),
                      onTap: () {
                        // Navigator.of(context).push(MaterialPageRoute(
                        //   builder: (context) => Chengji()));
                        showDialog<Null>(
                    context: context,
                    barrierDismissible: false,
                    builder: (BuildContext context) {
                      return new AlertDialog(
                        content: new SingleChildScrollView(
                          child: new ListBody(
                            children: <Widget>[
                              new Text('敬请期待'),
                            ],
                          ),
                        ),
                        actions: <Widget>[
                          new FlatButton(
                            child: new Text('确定'),
                            onPressed: () {
                              Navigator.of(context).pop();
                            },
                          ),
                        ],
                      );
                    },
                  );
                      },
                    ),
                  ),
                  Expanded(
                    flex: 1,
                    child: InkWell(
                      child: Column(
                        children: <Widget>[
                          Container(
                            height: 50,
                            width: 50,
                            decoration: BoxDecoration(
                              color: Color.fromRGBO(42, 130, 228, 1),
                              border: Border.all(width: 1, color: Color.fromRGBO(42, 130, 228, 1)),
                              borderRadius:
                                  BorderRadius.all(Radius.circular(9.0)),
                            ),
                            child: Image.asset('images/shijian7.png'),
                          ),
                          Text('社团报名')
                        ],
                      ),
                      onTap: () {
                        // Navigator.of(context).push(MaterialPageRoute(
                        //   builder: (context) => Baoming()));
                        showDialog<Null>(
                    context: context,
                    barrierDismissible: false,
                    builder: (BuildContext context) {
                      return new AlertDialog(
                        content: new SingleChildScrollView(
                          child: new ListBody(
                            children: <Widget>[
                              new Text('敬请期待'),
                            ],
                          ),
                        ),
                        actions: <Widget>[
                          new FlatButton(
                            child: new Text('确定'),
                            onPressed: () {
                              Navigator.of(context).pop();
                            },
                          ),
                        ],
                      );
                    },
                  );
                      },
                    ),
                  ),
                  Expanded(
                    flex: 1,
                    child: InkWell(
                      child: Column(
                        children: <Widget>[
                          Container(
                            height: 50,
                            width: 50,
                            decoration: BoxDecoration(
                              color: Color.fromRGBO(0, 186, 173, 1),
                              border: Border.all(width: 1, color: Color.fromRGBO(0, 186, 173, 1)),
                              borderRadius:
                                  BorderRadius.all(Radius.circular(9.0)),
                            ),
                            child: Image.asset('images/shijian8.png'),
                          ),
                          Text('入学教育')
                        ],
                      ),
                      onTap: () {
                        // Navigator.of(context).push(MaterialPageRoute(
                        //   builder: (context) => Jiaoyu()));
                        showDialog<Null>(
                    context: context,
                    barrierDismissible: false,
                    builder: (BuildContext context) {
                      return new AlertDialog(
                        content: new SingleChildScrollView(
                          child: new ListBody(
                            children: <Widget>[
                              new Text('敬请期待'),
                            ],
                          ),
                        ),
                        actions: <Widget>[
                          new FlatButton(
                            child: new Text('确定'),
                            onPressed: () {
                              Navigator.of(context).pop();
                            },
                          ),
                        ],
                      );
                    },
                  );
                      },
                    ),
                  ),
                ],
              ),
              SizedBox(
                height: 20,
              ),
              Divider()
            ],
          ),
        ));
  }
}
